<?php declare (strict_types=1);

namespace app\admin\controller;

use app\api\controller\Api;
use app\api\service\CropService;

class Crops extends Api
{
    /**
     * 初始化
     *
     * @return void
     */
    protected function initialize()
    {
        parent::initialize();
        $this->service = new CropService(); 
    }

    public function addAll()
    {
        $result = $this->service->addAll();
        return $result;
    }
}